﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020004ED RID: 1261
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class ExchangeGachaCeilingCsReq : IMessage<ExchangeGachaCeilingCsReq>, IMessage, IEquatable<ExchangeGachaCeilingCsReq>, IDeepCloneable<ExchangeGachaCeilingCsReq>, IBufferMessage
	{
		// Token: 0x17001053 RID: 4179
		// (get) Token: 0x0600390B RID: 14603 RVA: 0x0009CFC5 File Offset: 0x0009B1C5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<ExchangeGachaCeilingCsReq> Parser
		{
			get
			{
				return ExchangeGachaCeilingCsReq._parser;
			}
		}

		// Token: 0x17001054 RID: 4180
		// (get) Token: 0x0600390C RID: 14604 RVA: 0x0009CFCC File Offset: 0x0009B1CC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return ExchangeGachaCeilingCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17001055 RID: 4181
		// (get) Token: 0x0600390D RID: 14605 RVA: 0x0009CFDE File Offset: 0x0009B1DE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return ExchangeGachaCeilingCsReq.Descriptor;
			}
		}

		// Token: 0x0600390E RID: 14606 RVA: 0x0009CFE5 File Offset: 0x0009B1E5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ExchangeGachaCeilingCsReq()
		{
		}

		// Token: 0x0600390F RID: 14607 RVA: 0x0009CFED File Offset: 0x0009B1ED
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ExchangeGachaCeilingCsReq(ExchangeGachaCeilingCsReq other) : this()
		{
			this.gachaType_ = other.gachaType_;
			this.avatarId_ = other.avatarId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06003910 RID: 14608 RVA: 0x0009D01E File Offset: 0x0009B21E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ExchangeGachaCeilingCsReq Clone()
		{
			return new ExchangeGachaCeilingCsReq(this);
		}

		// Token: 0x17001056 RID: 4182
		// (get) Token: 0x06003911 RID: 14609 RVA: 0x0009D026 File Offset: 0x0009B226
		// (set) Token: 0x06003912 RID: 14610 RVA: 0x0009D02E File Offset: 0x0009B22E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint GachaType
		{
			get
			{
				return this.gachaType_;
			}
			set
			{
				this.gachaType_ = value;
			}
		}

		// Token: 0x17001057 RID: 4183
		// (get) Token: 0x06003913 RID: 14611 RVA: 0x0009D037 File Offset: 0x0009B237
		// (set) Token: 0x06003914 RID: 14612 RVA: 0x0009D03F File Offset: 0x0009B23F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint AvatarId
		{
			get
			{
				return this.avatarId_;
			}
			set
			{
				this.avatarId_ = value;
			}
		}

		// Token: 0x06003915 RID: 14613 RVA: 0x0009D048 File Offset: 0x0009B248
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as ExchangeGachaCeilingCsReq);
		}

		// Token: 0x06003916 RID: 14614 RVA: 0x0009D056 File Offset: 0x0009B256
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(ExchangeGachaCeilingCsReq other)
		{
			return other != null && (other == this || (this.GachaType == other.GachaType && this.AvatarId == other.AvatarId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06003917 RID: 14615 RVA: 0x0009D094 File Offset: 0x0009B294
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.GachaType != 0U)
			{
				num ^= this.GachaType.GetHashCode();
			}
			if (this.AvatarId != 0U)
			{
				num ^= this.AvatarId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06003918 RID: 14616 RVA: 0x0009D0EC File Offset: 0x0009B2EC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06003919 RID: 14617 RVA: 0x0009D0F4 File Offset: 0x0009B2F4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600391A RID: 14618 RVA: 0x0009D100 File Offset: 0x0009B300
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.GachaType != 0U)
			{
				output.WriteRawTag(24);
				output.WriteUInt32(this.GachaType);
			}
			if (this.AvatarId != 0U)
			{
				output.WriteRawTag(104);
				output.WriteUInt32(this.AvatarId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600391B RID: 14619 RVA: 0x0009D15C File Offset: 0x0009B35C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.GachaType != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.GachaType);
			}
			if (this.AvatarId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.AvatarId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600391C RID: 14620 RVA: 0x0009D1B4 File Offset: 0x0009B3B4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(ExchangeGachaCeilingCsReq other)
		{
			if (other == null)
			{
				return;
			}
			if (other.GachaType != 0U)
			{
				this.GachaType = other.GachaType;
			}
			if (other.AvatarId != 0U)
			{
				this.AvatarId = other.AvatarId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600391D RID: 14621 RVA: 0x0009D204 File Offset: 0x0009B404
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600391E RID: 14622 RVA: 0x0009D210 File Offset: 0x0009B410
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 24U)
				{
					if (num != 104U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.AvatarId = input.ReadUInt32();
					}
				}
				else
				{
					this.GachaType = input.ReadUInt32();
				}
			}
		}

		// Token: 0x0400166C RID: 5740
		private static readonly MessageParser<ExchangeGachaCeilingCsReq> _parser = new MessageParser<ExchangeGachaCeilingCsReq>(() => new ExchangeGachaCeilingCsReq());

		// Token: 0x0400166D RID: 5741
		private UnknownFieldSet _unknownFields;

		// Token: 0x0400166E RID: 5742
		public const int GachaTypeFieldNumber = 3;

		// Token: 0x0400166F RID: 5743
		private uint gachaType_;

		// Token: 0x04001670 RID: 5744
		public const int AvatarIdFieldNumber = 13;

		// Token: 0x04001671 RID: 5745
		private uint avatarId_;
	}
}
